package com.zjh.mapper;

import com.zjh.pojo.Book;
import com.zjh.pojo.User;
import org.mybatis.spring.support.SqlSessionDaoSupport;

import java.util.List;
import java.util.Map;

public class UserMapperImpl extends SqlSessionDaoSupport implements UserMapper {

    @Override
    public List<User> selectUser() {
        return getSqlSession().getMapper(UserMapper.class).selectUser();
    }

    @Override
    public User selectUserById(int id) {
        return getSqlSession().getMapper(UserMapper.class).selectUserById(id);
    }

    @Override
    public List<Book> selectAllBook() {
        return getSqlSession().getMapper(UserMapper.class).selectAllBook();
    }

    @Override
    public User login(Map<String, String> map) {
        return getSqlSession().getMapper(UserMapper.class).login(map);
    }

}
